public class PrintPrime1_100 {
    public static void main(String[] args) {
        System.out.println(2);
        int count = 1;
        for(int i=3;i<=100;i++) {
            boolean b = true;
            for(int j=2;j<=i/2;j++) {
                if(i%j==0) {
                    b = false;
                    break;
                }
            }
            if(b) {
                count++;
                System.out.println(i);
            }
        }
        System.out.println("1-100之间的素数共有："+count);

    }
}
